function placeItems(t){let e=0,i=1,r=1,s=t.getAttribute("data-grid-cols");toArray(t.children).forEach(function(c){let o=1;for(let n=0;n<=s;n++)if(c.classList.contains("colspan"+n)){o=n;break}e+Number(o)>s&&(i+=1,e=0,r=1),e=e+Number(o),itemStyles="-ms-grid-row: "+i+"; -ms-grid-column: "+r+"; -ms-grid-column-span: "+o+"; margin-right: 5px; margin-left: 5px;",c.setAttribute("style",itemStyles),r+=o})}function cssGridPolyfill(){const t=document.querySelectorAll("[data-grid-cols]");toArray(t).forEach(function(e){placeItems(e)})}function toArray(t){return Array.prototype.slice.call(t)}const supportsGrid=typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports("display","grid");if(!supportsGrid){document.addEventListener("DOMContentLoaded",cssGridPolyfill);var mutationObserver=new MutationObserver(function(t){t.forEach(function(e){cssGridPolyfill()})});mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})} //# sourceMappingURL=ie.grid.placement.8d31e32afeebe4520bfab9638ef91435.js.map